package lab02.test12;

/**
 * Created by JAVA on 2017/10/20.
 */
public class Rectangular extends Shape {

    //ctrl+o(重写)ctrl+h shift连选
//属性：宽和高
    double width;
    double height;
    @Override
    double area() {
        return width*height;}


    @Override
    double perimeter() {
        return 2*width+2*height;
    }
}
